/**
 * $Revision: 1.0 $
 * $Author: Eric Yang $
 * $Date: Aug 6, 2009 12:43:56 AM $
 *
 * Author: Eric Yang
 * Date  : Aug 6, 2009 12:43:56 AM
 *
 */
package com.gooex.domain.organization;

import java.io.Serializable;

/**
 * @author Eric Yang
 * @version 1.0
 */
public class Authority implements Serializable {
	/** TODO comment */
	private String id;

	/** TODO comment */
	private String name;

	/** TODO comment */
	private String value;

	/** TODO comment */
	private String type;

	/** TODO comment */
	public boolean equals(Object obj) {
		if (obj instanceof Authority) {
			Authority authority = (Authority) obj;
			return name.equals(authority.getName());
		}
		return false;
	}

	/* ============setter/getter============================ */
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}
}
